<!DOCTYPE html>
<head>
    <meta charset="UTF-8">
    <title>UI Test</title>
    <style>
        .el-header, .el-footer {
            background-color: #B3C0D1;
            color: #333;
            text-align: center;
            line-height: 60px;
        }
        
        .el-main {
            background-color: #E9EEF3;
            color: #333;
            text-align: center;
        }
        
        body > .el-container {
            margin-bottom: 40px;
        }
    </style>
    <!-- vue2 -->
    <script src="script/vue_2.js"></script>
    <!-- element 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <!-- element 引入组件库 -->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
    <!-- jquery 3.6 -->
    <script src="script/jquery-3.6.0.min.js"></script>
    <script>
        var app;
        $(function(){
            app = new Vue({
                el: '#app',
                data: {
                    color:"rgba(0,0,255,0.8)",
                    datetime:'2022-06-01T10:10:26.000000+08:00',
					enumv:'1'
                },
                methods:{
                    show: function(v){ alert(v); }
                }
            });
        });
    </script>
</head>
<body>
    <div id="app">
        <el-container>
            <el-header>UI元素演示</el-header>
            <el-main>
                <el-row>
                    <el-col :span='8'>颜色拾取</el-col>
                    <el-col :span='8'><el-color-picker v-model='color' show-alpha></el-color-picker></el-col>
                    <el-col :span='8'><el-button v-on:click='show(color)'>显示值</el-button></el-col>
                </el-row>
                <el-row>
                    <el-col :span='8'>时间拾取</el-col>
                    <el-col :span='8'><el-date-picker v-model='datetime' type='datetime' :clearable='false' value-format='yyyy-MM-ddTHH:mm:ss.000000+08:00'></el-date-picker></el-col>
                    <el-col :span='8'><el-button v-on:click='show(datetime)'>显示值</el-button></el-col>
                </el-row>
				<el-row>
					<el-col :span='8'>枚举列表</el-col>
                    <el-col :span='8'><el-select v-model='enumv'>
						<el-option label='A' value='0'></el-option>
						<el-option label='B' value='1'></el-option>
						<el-option label='C' value='2'></el-option>
					</el-select></el-col>
                    <el-col :span='8'><el-button v-on:click='show(enumv)'>显示值</el-button></el-col>
				</el-row>
            </el-main>
        </el-container>
    </div>
</body>